package com.app.babygo;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class ChildTakePicture extends CameraBasePage {
	protected static final String TAG = "ChildTakePictureView";
	protected String ChildID;
	protected String PicturePath = "Temp";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Intent intent = this.getIntent();
		ChildID = intent.getStringExtra(ChildCreation.CHILD_ID_KEY);
		PicturePath = this.getFilesDir() +  "/child_pic_" +  ChildID + ".jpg";
	}

	@Override
	protected void previewStageOK(View v) {
		super.previewStageOK(v);
		//camera.takePicture(PicturePath);
	}
	
	@Override
	protected void previewStageCancel(View v) {
		// TODO: clean up picture file
		super.previewStageCancel(v);
	}
	
	@Override
	protected void confirmStageOK(View v) {
		ChildCreation.setPicturePath(PicturePath);
		super.confirmStageOK(v);
	}
}
